import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/tousu_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class TousuEntity {
	late int code;
	late String msg;
	late List<TousuData> data;

	TousuEntity();

	factory TousuEntity.fromJson(Map<String, dynamic> json) => $TousuEntityFromJson(json);

	Map<String, dynamic> toJson() => $TousuEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class TousuData {
	late String title;
	late String content;

	TousuData();

	factory TousuData.fromJson(Map<String, dynamic> json) => $TousuDataFromJson(json);

	Map<String, dynamic> toJson() => $TousuDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}